package com.interest.business.domain;

import com.interest.common.annotation.Excel;
import com.interest.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.math.BigDecimal;

/**
 * 权益管理对象 interest_interest
 * 
 * @author hzf
 * @date 2024-03-23
 */
public class InterestInterest extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private String id;

    /** 权益编码 */
    @Excel(name = "权益编码")
    private String code;

    /** 权益名称 */
    @Excel(name = "权益名称")
    private String name;

    /** 权益供应方 */
    @Excel(name = "权益供应方")
    private String supplier;

    /** 权益类型  0优惠券 */
    @Excel(name = "权益类型  0优惠券")
    private String type;

    /** 领取方式 */
    @Excel(name = "领取方式")
    private String payment;

    /** 券码有效类型 -1：不限 0：自定义日期 1：动态日期 */
    private String validType;

    /** 自定义日期：购买后在固定日期内能领取兑换码。动态日期：购买后N天内可领取 */
    private String validValue;

    /** 券名称 */
    private String couponName;

    /**
     * 权益金额
     */
    private BigDecimal interestAmount;

    /**
     * 链接地址
     */
    private String url;

    public void setId(String id) 
    {
        this.id = id;
    }

    public String getId() 
    {
        return id;
    }
    public void setCode(String code) 
    {
        this.code = code;
    }

    public String getCode() 
    {
        return code;
    }
    public void setName(String name) 
    {
        this.name = name;
    }

    public String getName() 
    {
        return name;
    }
    public void setSupplier(String supplier) 
    {
        this.supplier = supplier;
    }

    public String getSupplier() 
    {
        return supplier;
    }
    public void setType(String type) 
    {
        this.type = type;
    }

    public String getType() 
    {
        return type;
    }
    public void setPayment(String payment) 
    {
        this.payment = payment;
    }

    public String getPayment() 
    {
        return payment;
    }
    public void setValidType(String validType)
    {
        this.validType = validType;
    }

    public String getValidType()
    {
        return validType;
    }
    public void setValidValue(String validValue) 
    {
        this.validValue = validValue;
    }

    public String getValidValue() 
    {
        return validValue;
    }
    public void setCouponName(String couponName) 
    {
        this.couponName = couponName;
    }

    public String getCouponName() 
    {
        return couponName;
    }


    public BigDecimal getInterestAmount() {
        return interestAmount;
    }

    public void setInterestAmount(BigDecimal interestAmount) {
        this.interestAmount = interestAmount;
    }

    public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("code", getCode())
            .append("name", getName())
            .append("supplier", getSupplier())
            .append("type", getType())
            .append("payment", getPayment())
            .append("createTime", getCreateTime())
            .append("validType", getValidType())
            .append("validValue", getValidValue())
            .append("couponName", getCouponName())
            .append("remark", getRemark())
                .append("url", getUrl())
                .append("interestAmount", getInterestAmount())
            .toString();
    }
}
